<template lang="html">
  <div class="box">
    <!-- 顶部 -->
    <hea-der :xinxi="geren"></hea-der>
    <!-- 我的钱包 -->
    <priec-main :PriecMain="priecshuju"></priec-main>
    <!-- 列表 -->
    <geren-list></geren-list>
    <!-- 底部 -->
    <foo-ter></foo-ter>
  </div>
</template>
<script>
import footer from "../public/footer/geren.vue";
import header from "../public/geren/header.vue";
import gerenlist from "../public/geren/geren_main.vue";
import priecmain from "../public/geren/priec.vue";
export default {
  name: 'geren',
  data () {
    return {
      geren:{},
      priecshuju:{}
    }
  },
  methods:{
    geranshuju:(boxmain)=>{
      let cur_id = sessionStorage.getItem("cur_id"),
      sign = sessionStorage.getItem("sign"),
      conent1 = boxmain,
      _url = "/index.php?g=app&m=shopping&a=center_info_post";
      let _data = {
        cur_id:cur_id,
        sign:sign
      }
      conent1.$http.post(_url,_data).then(function(data){
          if(data.data.status== "1"){
            conent1.geren =data.data.data.center_info;
            conent1.priecshuju =data.data.data.center_info;
          }else {
            
          }
      },function(response){
          conent1.$toast(response);
      })
    }
  },
  created:function(){
    let conent = this;
    conent.geranshuju(conent)
  },
  components:{
    'foo-ter':footer,
    'hea-der':header,
    'priec-main':priecmain,
    'geren-list':gerenlist
  }
}
</script>

<style scoped lang="less">
@import '../../assets/less/index.less';
#geren {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  margin-bottom: 13.3vw;
}
</style>